package com.yuyu.shop.api.controller.blockhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.yuyu.commons.interceptor.response.ResponseJson;
import com.yuyu.shop.api.apimodel.order.vo.OrderInfoVO;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author
 * @version 1.0
 * @description: sentinel熔断 限流降级类
 * @date 2023/1/12 13:23
 */
public class OrderApiBlockHandler {

    public static ResponseJson<OrderInfoVO> queryOrderBlock(@RequestParam String orderId, BlockException blockException) {
        return ResponseJson.error("系统降流或熔断中,请稍后再试!");
    }
}
